﻿using Summer.IService;
using Summer.Logger;
using System;
using System.Collections.Generic;
using System.Text;

namespace Summer.Service.custom
{
    public class ProductService : IProductService
    {
        public string GetAllProductsAsync(string productType)
        {
            NLogHelper.logger.Info("test for GetAllProductsAsync：" + productType);
            string str = null;
            str.ToString();

            // to do : using HttpClient to call outer service to get product list
            return $"OK {productType}";
        }

        public string GetAllProductsFallBackAsync(string productType)
        {
            NLogHelper.logger.Info("test for GetAllProductsFallBackAsync：" + productType);
            return $"OK for FallBack  {productType}";
        }
    }
}
